<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
</head>
<body>
	<div class="content-wrapper" th:fragment="updateFieldsetHasMetadata">
		<h3>
		添加元数据
		</h3>
		<input type="hidden" id="fieldsetId" th:value="${fieldsets.fieldsetId}" /> 
		<input type="hidden" id="profileId" th:value="${profiles.profileId}" />
		<form class="form-horizontal" id="fieldSetMetadataForm">
			<div class="panel panel-default">
				<div class="panel-heading"><h4 class="form-control-static"
				th:text="${fieldsets.fieldsetName}"></h4>
				<button type="button" class="btn btn-default fa fa-plus btn-sm " id="addMetadataBtn">添加元数据</button>
				</div>
				<!-- START table-responsive-->
				<div class="table-responsive">

					<table id="table-ext-1" class="table table-bordered table-hover">
						<thead>
							<tr>
								<th class="text-center" style="width: 100px;">显示名</th>
								<th class="text-center" style="width: 100px;">类型</th>
								<th class="text-center" style="width: 50px;">是否必填</th>
								<th class="text-center" style="width: 100px;">顺序</th>
								<th class="text-center" style="width: 100px;">操作</th>
							</tr>
						</thead>
						<tbody id="metadataListTable" class="text-center">
							
						</tbody>
					</table>
					<input type="hidden" id="metadataIdList" name="metadataIdList" value="" />
					<input type="hidden" id="metaSortList" name="metaSortList" value="" /> 
					<input type="hidden" id="isRequireList" name="isRequireList" value="" />
				</div>
				<!-- END table-responsive-->
				<div class="panel-footer">
					<div class="row">
						<div class="pull-right">
							<button type="button" id="returnBtn" class="btn btn-default"
										style="margin-right: 20px;">返回</button>
							<button type="button" id="submitFieldSetMetada"
										class="btn btn-primary">保存</button>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>

	<div th:fragment="updateFieldsetHasMetadata_dialog"> </div>

	<div th:fragment="updateFieldsetHasMetadata_js">

		<script
			th:src="@{/business/manager/inputProfile/updateFieldsetHasMetadata.js}"></script>

	</div>

</body>
</html>